import request from '../api'

const URL = '/system'

export function getSystemsByPage(systemInput){
    return request.post(URL+`/getSystemsByPage`,systemInput)
}
export function deleteSystemById(id){
    return request.delete(URL+`/deleteSystemById/${id}`)
}

export function addSystem(system){
    return request.post(URL+`/addSystem`,system)
}

export function getSystemById(id){
    return request.get(URL+`/getSystemById/${id}`)
}

export function modifySystemById(systemForm){
    return request.post(URL+`/modifySystemById`,systemForm)
}

export function getSystems(systemForm){
    return request.post(URL+`/getSystems`,systemForm)
}

export function getUsersBySystemId(id){
    return request.get(URL+`/getUsersBySystemId/${id}`)
}

export function modifyUsersBySystemId(dto){
    return request.post(URL+`/modifyUsersBySystemId`,dto)
}